<script type="text/javascript">
var postminchars = parseInt('$_G['setting']['minpostsize']');
var postmaxchars = parseInt('$_G['setting']['maxpostsize']');
var disablepostctrl = parseInt('{$_G['group']['disablepostctrl']}');
</script>

<div id="f_pst" class="pl">
<form method="post" autocomplete="off" id="fastpostform" action="forum.php?mod=post&action=reply&amp;fid=$_G[fid]&amp;tid=$_G[tid]&amp;extra=$_G[gp_extra]&amp;replysubmit=yes<!--{if $_G['gp_ordertype'] != 1}-->&infloat=yes&handlekey=fastpost<!--{/if}-->" <!--{if $_G['gp_ordertype'] != 1}-->onSubmit="return fastpostvalidate(this)"<!--{/if}-->>
	<table cellspacing="0" cellpadding="0">
		<tr>
			<td class="pls">
				<!--{if $_G['uid']}--><div class="avatar">{echo discuz_uc_avatar($_G['uid'])}</div><!--{/if}-->
				{hook/viewthread_fastpost_side}
			</td>
			<td class="plc">
				{hook/viewthread_fastpost_content}
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="subject" value="" />
				<input type="hidden" name="usesig" value="$usesigcheck" />
				<!--{if $_G['forum']['allowfeed']}-->
					<input type="hidden" name="addfeed" value="$addfeedcheck" />
				<!--{/if}-->

				<span id="fastpostreturn"></span>

				<!--{if $_G[forum_thread][special] == 5 && empty($firststand)}-->
				<div class="pbt cl">
					<div class="ftid sslt">
						<select id="stand" name="stand">
							<option value="">{lang debate_viewpoint}</option>
							<option value="0">{lang debate_neutral}</option>
							<option value="1">{lang debate_square}</option>
							<option value="2">{lang debate_opponent}</option>
						</select>
					</div>
					<script type="text/javascript">simulateSelect('stand');</script>
				</div>
				<!--{/if}-->

				<div class="tedt">
					<div class="bar">
						<span class="y">
							<a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]" onclick="return switchAdvanceMode(this.href)">{lang post_advancemode}</a>
							<span class="pipe">|</span>
							<span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]"{if !$_G['forum']['allowspecialonly']} onclick="showWindow('newthread', this.href)"{/if}>{lang post_newthread}</a></span>
						</span>
						{eval $seditor = array('fastpost', array('bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'));}
						{subtemplate forum/seditor}
					</div>
					<div class="area">
						<textarea rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, <!--{if $_G['gp_ordertype'] != 1}-->'fastpostvalidate($(\'fastpostform\'))'<!--{else}-->'$(\'fastpostform\').submit()'<!--{/if}-->);" tabindex="4" class="pt"></textarea>
					</div>
				</div>
				<!--{if $secqaacheck || $seccodecheck}--><div class="mtm">{template common/seccheck}</div><!--{/if}-->
				<p class="ptm">
					<button type="submit" name="replysubmit" id="fastpostsubmit" value="replysubmit" tabindex="5" class="pn vm"><strong>{lang post_newreply}</strong></button>
					<!--{if $_G['gp_ordertype'] != 1}-->
					<label for="fastpostrefresh"><input id="fastpostrefresh" type="checkbox" class="pc"/> {lang post_fastreply_gotolast}</label>
					<script type="text/javascript">if(getcookie('fastpostrefresh') == 1) {$('fastpostrefresh').checked=true;}</script>
					<!--{/if}-->
				</p>
			</td>
		</tr>
	</table>
</form>
</div>